package cn.est.mapper;
import cn.est.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Component
public interface UsersMapper {

	public Users getUsersById(@Param(value = "id") Long id);

	public List<Users>	getUsersListByMap(Map<String,Object> param);

	public Integer getUsersCountByMap(Map<String,Object> param);

	public Integer insertUsers(Users users);

	public Integer updateUsers(Users users);

	public Integer deleteUsersById(@Param(value = "id") Long id);

	public Integer batchDeleteUsers(Map<String,List<String>> params);

	public Users getUserByPhone(@Param(value="phone") String phone);

}
